package com.zking.mapper;

import com.zking.entity.User;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserMapper {
    int insert(User record);

    int insertSelective(User record);


    User queryUser(String name);

    List<User> selectAll();

    User selectUserByUsername(String principal);

    boolean updateUserByLock(Integer userId, Integer userEnable);

    User queryByname(String username);

    int register(String username, String password2, String phone, String created);
}